<template>
  <router-view v-slot="{ Component }">
    <keep-alive>
      <component :is="Component" :key="$route.name" v-if="$route.meta.alive" />
    </keep-alive>
    <component :is="Component" :key="$route.name" v-if="!$route.meta.alive" />
  </router-view>
  <!-- 联系人弹窗 -->
  <ContactPop></ContactPop>
</template>
<script lang="ts" setup>
  import ContactPop from "@/components/Contact"

</script>

<style lang="less">
#app {
  font-family: 'PingFang SC', Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  color: @main-text-color;
  font-size: @base-font-size;
}
</style>
